package showhow.simple.model.convert;

import org.mapstruct.Mapping;
import showhow.simple.model.vo.CustomerVO;
import showhow.simple.model.entity.CustomerDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface CustomerConvert {
    CustomerConvert INSTANCE = Mappers.getMapper(CustomerConvert.class);

    @Mapping(target = "paswd", ignore = true)
    CustomerVO convertToVO(CustomerDO customerDO);
}
